import { Module } from "@nestjs/common";
import { LoginController } from "./login.controller";
import { LoginService } from "./login.service";
import { TypeOrmModule } from "@nestjs/typeorm";
import { MenuClosure, MenuEntity, RoleEntity, RoleMenuEntity, UserEntity, UserRoleId } from "./entity/user.entity";
import { LoginRepository } from "./login.repository";
import { MenuHandle } from "../system/menu/entity/handle.entity";
import { MenuGtag } from "../system/menu/entity/menuGtag.entity";
import { OrgEntity } from "./entity/org.entity";

@Module({
  imports: [
    TypeOrmModule.forFeature([
      UserEntity,
      UserRoleId,
      RoleEntity,
      RoleMenuEntity,
      MenuEntity,
      MenuClosure,
      MenuHandle,
      MenuGtag,
      OrgEntity
    ])
  ],
  controllers: [LoginController],
  providers: [LoginService, LoginRepository]
})
export class LoginModule { }